.class Lcom/netease/newsreader/activity/ShowBigPic$2;
.super Ljava/lang/Object;
.source "ShowBigPic.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/ShowBigPic;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/ShowBigPic;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/ShowBigPic;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    .line 241
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/ShowBigPic$2;)Lcom/netease/newsreader/activity/ShowBigPic;
    .locals 1
    .parameter

    .prologue
    .line 241
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .parameter "v"

    .prologue
    .line 246
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 247
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$1(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/graphics/Bitmap;

    move-result-object v1

    if-eqz v1, :cond_4

    .line 248
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$1(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/graphics/Bitmap;

    move-result-object v2

    monitor-enter v2

    .line 250
    :try_start_0
    sget-object v1, Lcom/netease/newsreader/util/PicUtil;->photodownDir:Ljava/lang/String;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ShowBigPic;->access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v3

    .line 251
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowBigPic;->access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v4

    add-int/lit8 v4, v4, 0x1

    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v5}, Lcom/netease/newsreader/activity/ShowBigPic;->access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v5

    .line 250
    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/netease/newsreader/util/PicUtil;->isLocalPicExit(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 253
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    const-string v3, "\u56fe\u7247\u5df2\u4e0b\u8f7d\uff01"

    const/4 v4, 0x0

    invoke-static {v1, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 248
    :cond_0
    :goto_0
    monitor-exit v2

    .line 288
    :cond_1
    :goto_1
    return-void

    .line 256
    :cond_2
    sget-object v1, Lcom/netease/newsreader/util/PicUtil;->phototempDir:Ljava/lang/String;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ShowBigPic;->access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v3

    .line 257
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowBigPic;->access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v4

    add-int/lit8 v4, v4, 0x1

    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v5}, Lcom/netease/newsreader/activity/ShowBigPic;->access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v5

    .line 256
    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/netease/newsreader/util/PicUtil;->isLocalPicExit(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 259
    sget-object v1, Lcom/netease/newsreader/util/PicUtil;->photodownDir:Ljava/lang/String;

    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ShowBigPic;->access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v3

    .line 260
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowBigPic;->access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v4

    add-int/lit8 v4, v4, 0x1

    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v5}, Lcom/netease/newsreader/activity/ShowBigPic;->access$7(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v5

    .line 259
    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    .line 261
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowBigPic;->access$1(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/graphics/Bitmap;

    move-result-object v4

    .line 259
    invoke-static {v1, v3, v4}, Lcom/netease/newsreader/util/PicUtil;->saveMyBitmap(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Bitmap;)Z

    move-result v0

    .line 262
    .local v0, b:Z
    if-eqz v0, :cond_3

    .line 263
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    const-string v3, "\u6210\u529f\u4e0b\u8f7d\u5230\u76f8\u518c\uff01"

    const/4 v4, 0x0

    invoke-static {v1, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 264
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    new-instance v3, Landroid/content/Intent;

    const-string v4, "android.intent.action.MEDIA_MOUNTED"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "file://"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 265
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 264
    invoke-static {v5}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v5

    invoke-direct {v3, v4, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {v1, v3}, Lcom/netease/newsreader/activity/ShowBigPic;->sendBroadcast(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 248
    .end local v0           #b:Z
    :catchall_0
    move-exception v1

    monitor-exit v2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 267
    .restart local v0       #b:Z
    :cond_3
    :try_start_1
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$2;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    const-string v3, "\u4fdd\u5b58\u56fe\u7247\u5931\u8d25\uff01"

    const/4 v4, 0x0

    invoke-static {v1, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto/16 :goto_0

    .line 276
    .end local v0           #b:Z
    :cond_4
    new-instance v1, Lcom/netease/newsreader/activity/ShowBigPic$2$1;

    invoke-direct {v1, p0}, Lcom/netease/newsreader/activity/ShowBigPic$2$1;-><init>(Lcom/netease/newsreader/activity/ShowBigPic$2;)V

    .line 284
    invoke-virtual {v1}, Lcom/netease/newsreader/activity/ShowBigPic$2$1;->start()V

    goto/16 :goto_1
.end method
